from  rest_framework.pagination import PageNumberPagination



class  GlobalPagination(PageNumberPagination):

    #项目默认分页配置
     page_size = 10 #每页显示数据条数
     page_size_query_param = 'size' #前端发送默认每页数据
     max_page_size = 100



